<!DOCTYPE html>
<<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>展示页面</h1>
<a href="toAdd">添加</a>
<table border="1px" cellspacing="0">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>专业</td>
        <td>城市</td>
        <td>操作</td>
    </tr>
    <tr th:each="stu : ${sList}">
        <td th:text="${stu.sid}"></td>
        <td th:text="${stu.sname}"></td>
        <td th:text="${stu.mname}"></td>
        <td th:text="${stu.cname}"></td>
        <td>
            <a th:href="@{'toEdit?sid='+${stu.sid}}">修改</a>
            <a th:href="@{'del?sid='+${stu.sid}}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>